package edu.nf.ch03;

import edu.nf.ch03.entity.User;
import edu.nf.ch03.service.UserService;

import java.util.Map;

/**
 * @author wangl
 * @date 2025/4/23
 */
public class Main {

    public static void main(String[] args) {
        UserService userService = new UserService();
//        User user = userService.getUserById(1);
//        System.out.println(user.getName());
        Map<String, Object> map = userService.getUserByName("user1");
        map.forEach((k, v)
                -> System.out.println(k + " : " + v));
    }
}